// 导入
require('../css/commCss/normalize.css')
require('../css/commCss/reset.css')
require('../css/commCss/property.css')
require('../css/commCss/basic.less')
require('animate.css')
require('../css/advert.less')


document.addEventListener('DOMContentLoaded', function () {
    // console.log(1);
    // 获取元素
    // 时间
    const countDown = document.querySelector('#countDown')
    // 跳过
    const pass = document.querySelector('#pass')
    // 渲染的位置
    pass.addEventListener('click', function () {
        location.href = './register.html'
    })

    function setCountDown() {
        let num = 5
        let timeID = setInterval(function () {
            num--;
            if (num <= 0) {
                location.href = './login.html'
                clearInterval(timeID)
            } else {
                countDown.textContent = `${num}S`
            }
        }, 1000)
    }
    setCountDown()
})